from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver =webdriver.Chrome()
driver.get('https://www.baidu.com')

driver.implicitly_wait(5)
a=driver.find_element(By.ID,'kw')
print(a.get_attribute('outerHTML'))


time.sleep(3)
driver.quit()








